//schedule.js
const app = getApp()

Page({
  data: {
    detail: {},
  },
  onLoad: function (options) {
    console.log(options)
    // Do some initialize when page load.
    let detail = JSON.parse(options.detail)
    this.setData({
      detail: detail,
      scrollHeight: app.getScrollHeight(0)
    })
    wx.setNavigationBarTitle({
      title: this.data.detail.problemType,
    })
  },
  onReady: function () {
    // Do something when page ready.
  },
  onShow: function () {
    // Do something when page show.
  },
  onHide: function () {
    // Do something when page hide.
  },
  onUnload: function () {
    // Do something when page close.
  },
  onPullDownRefresh: function () {
    // Do something when pull down
  },
  // Event handler.
})